//
//  HomeCell.m
//  Project2
//
//  Created by hundredsandc on 2017/11/6.
//  Copyright © 2017年 hundredsandc. All rights reserved.
//

#import "HomeCell.h"

@interface HomeCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *sourceLabel;
@property (weak, nonatomic) IBOutlet UIImageView *newsImageView;

@end
@implementation HomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)customTitle:(NSString *)title time:(NSString *)time source:(NSString *)source imageUrlStr:(NSString *)imageUrlStr{
    _titleLabel.text = title;
    _timeLabel.text = time;
    _sourceLabel.text = source;
    [_newsImageView sd_setImageWithURL:[NSURL URLWithString:imageUrlStr]];
}


@end
